package com.ctshk.rpc.booking.req.system.airexpress.add;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 系统内机场快线单据信息详情
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-03-09
 */
@Data


@ApiModel(value = "SupplierSystemOrderAirExpressDetailAddReq对象", description = "系统内机场快线单据信息详情")
public class SupplierSystemOrderAirExpressDetailAddReq implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotBlank(message = "票种名称不能为空")
    @ApiModelProperty(value = "票种名称")
    private String ticketTypeNameCn;

    @ApiModelProperty(value = "票号")
    private String ticketNumber;

    @NotNull(message = "票数不能为空")
    @ApiModelProperty(value = "票数")
    private Integer number;

    @NotNull(message = "单价不能为空")
    @Min(value = 0, message = "单价不能小于0")
    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;

    @NotBlank(message = "旅客json不能为空")
    @ApiModelProperty(value = "旅客json,格式：{\"touristType\":\"成人\",\"touristTitle\":\"先生\",\"touristName\":\"Bruce Lee\"}")
    private String passengerJson;


}
